import org from './modules/org'

import right from './modules/right'

const routes = [

    {
        path: "/",
        component: () => import('@/views/layout.vue'),
        children: [
            {
                path: '',
                meta: {
                    title: "首页"
                },
                component: () => import('@/views/Home/index.vue')
            },
            //子路由 不需要写/
            ,
            org,

            right

        ]
    },
    {
        path: "/login",
        name: "login",
        component: () => import('@/views/Login/index.vue'),
        meta: {
            title: "登录",
            not_check: true
        }
    },
    {
        path: "/404",

        component: () => import('@/views/error-pages/404.vue'),
        meta: {
            title: "404",
            not_check: true
        }
    },
    {
        path: "/403",
        component: () => import('@/views/error-pages/403.vue'),
        meta: {
            title: "访问受限",
            not_check: true
        }
    },
    {
        //该路由必须出现在路由表的最后一项
        path: "*",
        component: () => import('@/views/error-pages/404.vue'),
        meta: {
            not_check: true
        }
    },


];

export default routes